float x0, y0;
void setup() {
  size(600,600);
  background(220);
  smooth();
  strokeWeight(20);
  x0 = width/2;
  y0 = height/2;
}  
void draw() {
  int m = millis() % 60000;
  print(m+" ");
  float angulo = map(m,0,60000,-HALF_PI,3*HALF_PI);
  float x, y;
  background(220);
  x = map(cos(angulo),-1,1,0,width);
  y = map(sin(angulo),-1,1,0,height);
  line(x0,y0,x,y);

}

